<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="/jsp/inc/header.jsp" %>
<c:set var="title" value="picture"/>
<c:set var="rootpath" value="${CONTEXT_PATH}/admin/resource/picture/"/>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="${STATIC_HOST}/css/ligerui.css" rel="stylesheet" type="text/css"/>
    <link href="${STATIC_HOST}/css/common.css" rel="stylesheet" type="text/css" />
    <script src="${STATIC_HOST}/js/common.js" type="text/javascript"></script>
    <script src="${STATIC_HOST}/js/LG.js" type="text/javascript"></script>
    <title>${title}管理</title>
</head>
<body>
<form:form commandName="picture" class="l-form" id="mainform" name="mainform" method="post" action="${rootpath}/save.do">
  <div class="l-group l-group-hasicon"><img src="${STATIC_HOST}/images/common/communication.gif"><span>当前位置: 宇宙CMS &gt; <a href="${rootpath}/list.do">${title}管理</a> &gt; ${picture.id==0 ? '新增' : '修改'}${title}</span></div>
    <div id="errorLabelContainer"> <form:errors path="*"/></div>
        <input type="hidden" name="queryParam" value="${queryParam}"/>
		<input type="hidden" name="id" id="id" value="${picture.id}"/>
		
      <ul>
      <li class="li_show_left" style="padding-left:30px;"><label for="siteId">siteId</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="siteId" id="siteId" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.siteId}"/>
       <span class='formValidatorError'><form:errors path="siteId" /></span>
      </li>
      </ul><!--换行-->
      <li class="li_show_left" style="padding-left:30px;"><label for="title">title</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="title" id="title" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.title}"/>
       <span class='formValidatorError'><form:errors path="title" /></span>
      </li>
      <ul>
      <li class="li_show_left" style="padding-left:30px;"><label for="fileName">fileName</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="fileName" id="fileName" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.fileName}"/>
       <span class='formValidatorError'><form:errors path="fileName" /></span>
      </li>
      </ul><!--换行-->
      <li class="li_show_left" style="padding-left:30px;"><label for="extName">extName</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="extName" id="extName" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.extName}"/>
       <span class='formValidatorError'><form:errors path="extName" /></span>
      </li>
      <ul>
      <li class="li_show_left" style="padding-left:30px;"><label for="host">host</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="host" id="host" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.host}"/>
       <span class='formValidatorError'><form:errors path="host" /></span>
      </li>
      </ul><!--换行-->
      <li class="li_show_left" style="padding-left:30px;"><label for="path">path</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="path" id="path" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.path}"/>
       <span class='formValidatorError'><form:errors path="path" /></span>
      </li>
      <ul>
      <li class="li_show_left" style="padding-left:30px;"><label for="hashcode">hashcode</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="hashcode" id="hashcode" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.hashcode}"/>
       <span class='formValidatorError'><form:errors path="hashcode" /></span>
      </li>
      </ul><!--换行-->
      <li class="li_show_left" style="padding-left:30px;"><label for="width">width</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="width" id="width" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.width}"/>
       <span class='formValidatorError'><form:errors path="width" /></span>
      </li>
      <ul>
      <li class="li_show_left" style="padding-left:30px;"><label for="height">height</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="height" id="height" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.height}"/>
       <span class='formValidatorError'><form:errors path="height" /></span>
      </li>
      </ul><!--换行-->
      <li class="li_show_left" style="padding-left:30px;"><label for="fileSize">fileSize</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="fileSize" id="fileSize" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.fileSize}"/>
       <span class='formValidatorError'><form:errors path="fileSize" /></span>
      </li>
      <ul>
      <li class="li_show_left" style="padding-left:30px;"><label for="status">status</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="status" id="status" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.status}"/>
       <span class='formValidatorError'><form:errors path="status" /></span>
      </li>
      </ul><!--换行-->
      <li class="li_show_left" style="padding-left:30px;"><label for="createTime">createTime</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="createTime" id="createTime" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.createTime}"/>
       <span class='formValidatorError'><form:errors path="createTime" /></span>
      </li>
      <ul>
      <li class="li_show_left" style="padding-left:30px;"><label for="createUserId">createUserId</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="createUserId" id="createUserId" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.createUserId}"/>
       <span class='formValidatorError'><form:errors path="createUserId" /></span>
      </li>
      </ul><!--换行-->
      <li class="li_show_left" style="padding-left:30px;"><label for="modifyTime">modifyTime</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="modifyTime" id="modifyTime" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.modifyTime}"/>
       <span class='formValidatorError'><form:errors path="modifyTime" /></span>
      </li>
      <ul>
      <li class="li_show_left" style="padding-left:30px;"><label for="modifyUserId">modifyUserId</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="modifyUserId" id="modifyUserId" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.modifyUserId}"/>
       <span class='formValidatorError'><form:errors path="modifyUserId" /></span>
      </li>
      </ul><!--换行-->
      <li class="li_show_left" style="padding-left:30px;"><label for="originalUrl">originalUrl</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="originalUrl" id="originalUrl" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.originalUrl}"/>
       <span class='formValidatorError'><form:errors path="originalUrl" /></span>
      </li>
      <ul>
      <li class="li_show_left" style="padding-left:30px;"><label for="memo">memo</label> <span style="color:red">*</span>:</li>
           <li class="li_show_right">
        <input type="text" name="memo" id="memo" size="60" maxlength="100" ltype='text'  validate="{required:true,minlength:0,maxlength:100}" value="${picture.memo}"/>
       <span class='formValidatorError'><form:errors path="memo" /></span>
      </li>
      </ul><!--换行-->

  <div class="l-group l-group-hasicon"></div> 
  <input type="submit" value="提交" id="mainformsubmit" class="l-button l-button-submit form_submit_button"/> 
  <c:if test="${fn:contains(header.referer,rootpath)}"><input type="button" value="返回" class="l-button l-button-test" style="float:left;" onClick="location.href='${header.referer}'" /></c:if>
</form:form>
<script type="text/javascript" >
var mainform = $("#mainform");
mainform.ligerForm();
jQuery.metadata.setType("attr", "validate");
LG.validate(mainform);

$(function(){
	$("#name").bind('keyup', function (){
		$("#shortName").val($("#name").val());
	});
});
function callbackSmallLogoUrl(jsonData){
	jQuery("#smallLogoUrl").val(callbackPic(jsonData));
}
function callbackLogoUrl(jsonData){
    jQuery("#logoUrl").val(callbackPic(jsonData));
}
</script>
<div id="scrolltop">返回顶部</div>
<%@ include file="/jsp/inc/footer.jsp"%>
</body>
</html>